package com.example.happ.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.happ.pojo.Merchant;
import org.apache.ibatis.annotations.Update;

public interface MerchantInfoMapper extends BaseMapper<Merchant> {
    @Update("UPDATE merchant SET amount = amount + #{arg0} WHERE id = #{arg1}")
    int updateAmount(double amount, int merchantId);
    @Update("UPDATE merchant SET amount = amount - #{arg0} WHERE id = #{arg1}")
    int updateAmount1(double amount, int merchantId);
}
